package com.example.adapter2;

/**
 * @version 1.0.0
 * @className: PegAdapter
 * @description:
 * @author: rosszhang
 * @date: 2022/5/13 14:32
 */
public class PegAdapter extends SquarePeg{
    private RoundPeg roundPeg;

    public PegAdapter(RoundPeg roundPeg) {
        this.roundPeg = roundPeg;
    }

    @Override
    public void insert(String str){
        roundPeg.insertIntohole(str);
    }
}
